import request from '@/utils/request'
import type { PageParam, ResponseData } from '../commonType'

enum API {
  ALL_URL = '/t-vessels-code/getAll',
  INFO_URL = '/t-vessels-code/getInfo',
}

export function codeGetAll(data) {
  return request.get<any, ResponseData>(API.ALL_URL, { params: data })
}

export function codeGetInfo(data) {
  return request.get<any, ResponseData>(API.INFO_URL, { params: data })
}
